package com.tocici.config;

import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;
import org.springframework.boot.autoconfigure.cache.CacheProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

//@Configuration
public class CaffineCacheConfig {
    @Bean
    public Cache<Long, List<String>> caffeine(){
        return Caffeine.newBuilder().initialCapacity(100).maximumSize(1000).build();
    }
}
